<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <title>微信登录页面</title>
    <script src="__PUBLIC__/js/wx/wxLogin.js"></script>
</head>

<body style="margin: 0;padding: 0;background-color: #575a5c;">
    <div id="obj" style="text-align: center;margin-top: 10%;"></div>
</body>

<script>
    var user_id     = "{$user_id}";
    var http_type   = window.location.protocol.split(':')[0];
    var obj         = new WxLogin({
        self_redirect: false,//true将页面跳转放在ifream里面   false直接跳转到要跳转的页面
        id: "obj",
        appid: "wxb70eb6c4cdc9b252",
        scope: "snsapi_login",
        redirect_uri: http_type + '://' + "{$DOMAIN_NAME}" + "/Wx/WxLogin/wx_login_callback",
        state: user_id,
        style: "white",
        href: ""
    });
</script>
</html>